﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_managerFound : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        BLL.LostAndFound bllLAF = new BLL.LostAndFound();
        int lid = 0;
        for (int i = 0; i < GridView1.Rows.Count; i++)
        {
            CheckBox cb = (CheckBox)GridView1.Rows[i].Cells[0].FindControl("cbCheck");
            if (cb.Checked)
            {
                lid = Convert.ToInt32(((Label)GridView1.Rows[i].FindControl("lblLid")).Text);
                bllLAF.softDelByLId(lid);
            }
        }
        GridView1.DataBind();
    }
}